﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;

namespace ZDSoft.TES.Entity.FunctionEntity
{
    [ActiveRecord("Question")]
    public class Question : EntityBase<Question>
    {
        /// <summary>
        /// 题目
        /// </summary>
        [Property]
        public string QuestionContent { set; get; }

        [HasMany(typeof(QuestionAnswer), ColumnKey = "QuestionID", Inverse = true, Lazy = true)]
        public IList<QuestionAnswer> QuestionAnswers { get; set; }

        [HasMany(typeof(Quota), ColumnKey = "QuestionID", Inverse = true, Lazy = true)]
        public IList<Quota> Quotas { get; set; }
    }
}
